a = dir('*.bmp');

for i = 1:length(a); 
    bmp2c( a(i).name ); 
end